package org.dashboard.service;

import com.github.pagehelper.PageInfo;
import org.dashboard.bean.AdDictionary;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by admin on 2018/9/20.
 */
public interface AdDictionaryService {
    int deleteByPrimaryKey(Integer dictionaryId);

    boolean deleteByPrimaryKeys(ArrayList<Integer> dictionaryIds);

    int insert(AdDictionary record);

    int insertSelective(AdDictionary record);

    AdDictionary selectByPrimaryKey(Integer dictionaryId);

    int updateByPrimaryKeySelective(AdDictionary record);

    int updateByPrimaryKey(AdDictionary record);

    AdDictionary selectAdDictionaryByCode(String dictionaryCode);

    PageInfo selectAdDictionaryPaged(String criteria, Integer pageNum, Integer pageSize);

    List<AdDictionary> selectadDictionaryTypes(String type);

}
